package com.xiaolin.designmode.mediator;

/**
 * @ClassName MediatorTest
 * @Description TODO
 * @Detail detail
 * @Author MyPC
 * @Date 2020/11/7
 * @Version 1.0
 */
public class MediatorTest {

    public static void main(String[] args) {
        Mediator mediator=new ConcreteMediator();
        ConcreteColleague1 c1 = new ConcreteColleague1();
        ConcreteColleague2 c2 = new ConcreteColleague2();
        mediator.register(c1);
        mediator.register(c2);
        c1.send();
        c2.send();
    }
}
